﻿using CsvHelper.Configuration.Attributes;

namespace JinYuan.Models
{
    /// <summary>
    /// 工位报警数据
    /// </summary>
    public class AlarmData
    {
        /// <summary>
        /// 报警唯一标识符
        /// </summary>
        public string AlarmGuid { get; set; }

        /// <summary>
        /// 报警地址
        /// </summary>
        public string PLCAdress { get; set; }

        /// <summary>
        /// 报警内容
        /// </summary>
        public string AlarmContent { get; set; }

        /// <summary>
        /// 报警代码
        /// </summary>
        public string AlarmCode { get; set; }

        /// <summary>
        /// 报警类型 停机报警/非停机报警
        /// </summary>
        public string AlarmType { get; set; }

        /// <summary>
        /// 报警开始时间
        /// </summary>
        public System.String StartTime { get; set; }

        /// <summary>
        /// 报警消除时间
        /// </summary>
        public System.String EndTime { get; set; }

        /// <summary>
        /// 报警描述
        /// </summary>
        public string AlarmDesc { get; set; }

        /// <summary>
        /// 报警状态 传1或0，1是开始报警，0结束报警
        /// </summary>
        public string AlarmState { get; set; }

        /// <summary>
        /// 更新状态
        /// </summary>
        public int Flag { get; set; }
    }

    public class AlarmCSVData
    {

        /// <summary>
        /// 报警开始时间
        /// </summary>
        [Name("报警时间")]
        public string StartTime { get; set; }

        /// <summary>
        /// 报警内容
        /// </summary>
        /// 
        [Name("报警内容")]
        public string AlarmContent { get; set; }

    }
}
